package com.xxc.exam.mapper

import com.xxc.exam.entity.QuestionEntity
import com.xxc.exam.entity.pojo.Question
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner

@SpringBootTest
@RunWith(SpringJUnit4ClassRunner::class)
class QuestionMapperTest {

    @Autowired
    lateinit var mapper:QuestionMapper

    @Test
    fun categoriesQuesCounts()
    {
        println(mapper.selectQuesBySelection(1, "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15", mapOf(Pair(1, 10), Pair(2, 10), Pair(3, 10))).size)
    }

}